<?php

require_once('../config.php');
require_once('include_dao.php');
$questionId = $_POST['questionId'];

$firstLinkObj = DAOFactory::getQuestionmasterDAO()->load($questionId);
DAOFactory::getQuestionmasterDAO()->deleteByFirstLink($firstLinkObj->firstLink);

header("Location: Edit-Question.php");


?>